<script type="text/html" id="headbar">
	<a href="http://code.google.com/p/kwestion/" target="_blank"><img src="kwestion_link.png" /></a> 
	<a href="#" onclick="setprofile(this);return false;">${myname}</a>
	<em>${statuses_count}</em> 
	<span onclick="toolbarcollapse(this); return false;" id="toolbarcollapse">{{if getCookie('toolbarcollapse')=='yes'}}&raquo;{{else}}&laquo;{{/if}}</span>
	<span {{if getCookie('toolbarcollapse')=='yes'}}class="toolbar_collapse"{{/if}}>
		<a href="#" onclick="opentab('follower','${myname}'); return false;">Follower</a><em>${followers_count}</em>
		<a href="#" onclick="opentab('following','${myname}'); return false;">Following</a><em>${friends_count}</em>
	</span>	
	{{if window.webkitNotifications}}<a href="#" style="color:#ffff00;" onclick="requestnotify();return false;">SetNotify</a> {{/if}} 
	<a href="#" onclick="loadsetting(this); return false;" id="loadsettingbutton">Options</a> <a href="index.php" onclick="logout();">Logout</a>
</script>

<script type="text/html" id="ext-edit">
	<div class="s_clear" style="margin:3px;">
		<div class="s_clear" style="text-align:center;">
			<textarea id="ext-editbox" class="msginputbox" style="height:80px;">${text}</textarea>
		</div>
		<div style="padding:5px;">
			(<span id="ext-editboxcount"></span>) 
			<a href="#" class="a_button" id="ext-sendmsg">Send</a> or 
			<a href="#" class="a_button" id="ext-dosearch">Search</a>
		</div>
		<div class='s_clear' id='kwestion_tools'>Useful URLs: 
			<a href='http://www.flickr.com/' target='_blank'>flickr</a> | 
			<a href='http://twitpic.com/' target='_blank'>twitpic</a> | 
			<a href='http://tweetphoto.com/' target='_blank'>tweetphoto</a> | 
			<a href='http://img.ly/' target='_blank'>img.ly</a> 
		</div>	

	</div>
</script>

<script type="text/html" id="rtdialog">
	<div class="s_clear" style="margin:3px;">
		<div class="s_clear" style="text-align:center;">
			<textarea id="rtmsg" class="msginputbox" style="width:300px;height:100px;"></textarea>
		</div>
		<div style="padding:5px;">
			(<span id="rtmsgcount"></span>) 
			<a href="#" class="a_button" id="rtbutton">Classic Retweet</a> or 
			<a href="#" class="a_button" id="ortbutton">Official Retweet</a>
		</div>
	</div>
</script>

<script type="text/html" id="threads">
	<div class="s_clear" style="border:1px dotted #ccc;{{if bold}}font-weight:bold;{{/if}}">
		<img class="people_op" width="24" height="24" alt="${from.screen_name}" src="${from.profile_image_url}" />
		${from.screen_name}: {{html parsetext(text)}}
	</div>
</script>

<script type="text/html" id="userinfo">
	{{if screen_name!=myname}}
	<div><a href='#' class='button' onclick='follow(this,"${screen_name}"); return false;'>{{if following}}Unfollow{{else}}Follow{{/if}}</a> Registered: ${parsetime(parsedatestr(created_at))}, rank: ${Math.floor(Math.exp(21-1.1*Math.log(followers_count)))}</div>
	{{/if}}
	<div>Bio: ${description}</div>
	<div>${screen_name}(${name}) has ${statuses_count} tweets ( ${Math.round(statuses_count/(new Date() - parsedatestr(created_at))  * 3600000 * 24 )} per day), <a href="#" class="button" onclick="opentab('follower','${screen_name}')">${followers_count}</a> follower. He/she is following<a href="#" class="button" onclick="opentab('following','${screen_name}')">${friends_count}</a>people. His/Her URL is <a href="${url}" target="_blank">${url}</a></div>
</script>

<script type="text/html" id="changeprofile">
	<div class="s_clear" style="padding:5px;">
		Bio: <br />
		<textarea style="border:1px solid #cccccc; width:280px; height:50px;" id="setdescriptionval">${bio}</textarea><br /><a href="#" onclick="setdescription(); return false;">Change</a>
		<iframe src="upload.php" width="300" height="100" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
	</div>
</script>


